﻿@model Grand.Web.Models.PushNotifications.PublicInfoModel
@inject IPageHeadBuilder pagebuilder

<script asp-location="Footer" asp-src="https://www.gstatic.com/firebasejs/8.6.5/firebase.js"></script>
<script asp-location="Head" asp-src="/theme/script/public.push.notifications.js"></script>

<script asp-location="Footer" asp-order="300">
        PushNotifications.init("@Model.PublicApiKey", "@Model.SenderId", "@Model.ProjectId", "@Model.AuthDomain", "@Model.StorageBucket",
            "@Model.DatabaseUrl", "@Url.Action("ProcessRegistration", "PushNotifications")", "@Model.AppId");
        PushNotifications.process();
</script>